﻿@model IEnumerable<KRM.Core.tblKRWProductFAQ>
@{
    ViewBag.Title = "Edit Popular Answers";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

@Html.Partial("Partial/_MessageResult")
<table class="table table-bordered table-fix">
    <thead>
        <tr>
            <th>Action</th>
            <th>Question</th>
            <th>Answer</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    <div class="btn-group">
                        <a href="javascript:;" data-toggle="dropdown" class="btn dropdown-toggle"><i class="icon-cog"></i><span class="caret"></span></a>
                        <ul class="dropdown-menu dropdowm-right">
                            <li>
                                <a href="/task/deletefaq?faqid=@item.ProductFaqID&action=delete" onclick="return confirm('Are you sure you wish to delete FAQ number @item.ProductFaqID')">Delete</a>
                            </li>
                            <li>
                                <a href="/task/deletefaq?faqid=@item.ProductFaqID&action=remove" onclick="return confirm('Are you sure you wish to remove FAQ number @item.ProductFaqID')">Remove Popular Answer</a>
                            </li>
                        </ul>
                    </div>
                </td>
                <td title="@item.Question">@item.Question</td>
                <td title="@item.Answer">@item.Answer</td>
            </tr>
        }
    </tbody>
</table>
